package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;

@ToString
@ApiModel("")
@Table(name = "tb_cities")
public class TbCities {
    /**
     * 城市ID
     */
    @ApiModelProperty(value = "城市ID")
    @NotEmpty(message="城市ID不能为空")
    @Id
    private String cityid;

    /**
     * 城市名称
     */
    @ApiModelProperty(value = "城市名称")
    @NotEmpty(message="城市名称不能为空")
    private String city;

    /**
     * 省份ID
     */
    @ApiModelProperty(value = "省份ID")
    @NotEmpty(message="省份ID不能为空")
    private String provinceid;

    /**
     * 获取城市ID
     *
     * @return cityid - 城市ID
     */
    public String getCityid() {
        return cityid;
    }

    /**
     * 设置城市ID
     *
     * @param cityid 城市ID
     */
    public void setCityid(String cityid) {
        this.cityid = cityid;
    }

    /**
     * 获取城市名称
     *
     * @return city - 城市名称
     */
    public String getCity() {
        return city;
    }

    /**
     * 设置城市名称
     *
     * @param city 城市名称
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 获取省份ID
     *
     * @return provinceid - 省份ID
     */
    public String getProvinceid() {
        return provinceid;
    }

    /**
     * 设置省份ID
     *
     * @param provinceid 省份ID
     */
    public void setProvinceid(String provinceid) {
        this.provinceid = provinceid;
    }
}